[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 delete                  Delete Object's Memory Space on the Heap

 delete my_pointer;

    The delete operator deletes the memory space allocated to an
    object; it is the opposite of new (i.e. it deallocates
    sizeof(object) bytes):

               my_name *my_nameptr;
                :
                :
               my_nameptr = new my_name;
                :
                :
               delete my_nameptr;

See Also: new
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson